<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title><?php if($system['title']){ ?>{$system['title']}<?php }else{ ?>联通<?php } ?></title>
<link rel="stylesheet" type="text/css" href="__ROOT__/Public/css/swipeslider.css">
<link rel="stylesheet" href="__ROOT__/Public/mcss/css.css?12">
<style>
    .banner{width:100%;}
    .banner_img{width:100%;display:block;}
</style>
</head>
<body style="background-color: #f9f9f9;">

<div class="top">
	<!-- <div class="topt">
		<div class="toptl">项目列表</div>
		<div class="toptr">
			<span class="topr_span">共23个项目</span>
		</div>
		<div class="clear"></div>
	</div> -->
	<div class="topb">
		<img class="topb0" src="__ROOT__/Public/images/search.png"/>
		<div class="topb1">
			<input class="topb_ipt" id="searchval" name="searchval" type="text" placeholder="请输入项目名称" value="{$searchval}"/>
		</div>
		<div class="topb_btn" onclick="search()">搜索</div>
		<div class="clear"></div>
	</div>
	
	<!--<div class="list_fl">
		<volist name="project_class" id="v">
			<div class="list_fla <?php if($v['id']==$cid){echo'list_flactive';} ?>" onclick="change_class({$v.id})">{$v.name}</div>
		</volist>
	</div>-->

</div>
<div style="height: 60px;"></div>
<div class="banner">
    <!--<img class="banner_img" src="__ROOT__/Public/images/bga.jpg"/>-->
	<figure id="full_feature" class="swipslider">
		<ul class="sw-slides">
			<?php foreach($banner as $val){ ?>
				<li class="sw-slide">
    				<img onclick="banner('{$val['type']}','{$val['url']}','{$val['ewm']}')" src="{$val['img']}"/>
    			</li>
			<?php } ?>
		</ul>
	</figure>
</div>

<volist name="list" id="v">
	<div class="list">
		<img onclick="javascript:location.href='{:U('Home/Mobile/Detail/detail',array('id'=>$v['id']))}'" class="listl" src="{$v['path']}{$v['img']}"/>
		<div onclick="javascript:location.href='{:U('Home/Mobile/Detail/detail',array('id'=>$v['id']))}'" class="listc">
			<div class="listc1 ellipse1">{$v.title}</div>
			<div class="listc2 ellipse1">审核周期{$v.cycle}天</div>
			<div class="listc3">项目佣金：<span>{$v.reprice}元</span></div>
			<div class="listc3">分销佣金：<span><?php echo round($v['reprice']*$system['one_fx']/100,2);?>元</span></div>
		</div>
		<div onclick="javascript:location.href='{:U('Home/Mobile/Detail/detail',array('id'=>$v['id']))}'" class="listr1">我要申请</div>
		<div class="listr open_kf1" onclick="javascript:location.href='{:U('Home/Mobile/Home/poster',array('flag'=>2,'pid'=>$v['id']))}'">
		    <img class="listr_img" src="__ROOT__/Public/images/fenxiang.png"/>
		</div>
	</div>
</volist>

<div class="nonemore">暂无更多</div>

<div style="height: 70px;"></div>
<div class="foot">
	<div class="foota" onclick="javascript:location.href='{:U('Home/Mobile/Index/index')}'">
		<img class="foota1" src="__ROOT__/Public/images/foot1a.png"/>
		<div class="foota2 foota2a">首页</div>
	</div>
	<div class="foota" onclick="javascript:location.href='{:U('Home/Mobile/Home/my')}'">
		<img class="foota1" src="__ROOT__/Public/images/foot2.png"/>
		<div class="foota2">我的</div>
	</div>
</div>
</body>

<!-- 分享弹窗 -->
<div class="ewm" style="display: none;">
	<div class="ewm_box">
		<img class="ewm_box_img" src="{$sys['kf_img']}"/>
		<p class="ewm_box_p">长按二维码识别</p>
		<div class="ewm_box_close">关闭</div>
	</div>
</div>
<script type="text/javascript" src="__ROOT__/Public/js/jquery.min.js" charset="utf-8"></script>
<script type="text/javascript" src="__ROOT__/Public/js/swipeslider.min.js"></script>
<script>
	//banner轮播开始
	   $(window).load(function() {
	     $('#full_feature').swipeslider();
	     $('#content_slider').swipeslider({
	       transitionDuration: 600,
	       autoPlayTimeout: 10000,
	       sliderHeight: '300px'
	     });
	     $('#responsiveness').swipeslider();
	     $('#customizability').swipeslider({
	       transitionDuration: 1500, 
	       autoPlayTimeout: 4000, 
	       timingFunction: 'cubic-bezier(0.38, 0.96, 0.7, 0.07)',
	       sliderHeight: '30%'});
	   });
	   //banner轮播结束
	 
	function banner(type,urls,ewm){
		if(type==1){
			location.href = urls;
		}else{
			$(".ewm_box_img").attr('src',ewm);
			$(".ewm_box_p").text('长按关注公众号~')
			$(".ewm").show();
		}
	} 
	 
	function change_class(cid){
		var searchval = "{$searchval}";
		location.href="{:U('Home/Mobile/Index/index')}&cid="+cid+"&searchval="+searchval;
	}
	function search(){
		var searchval = $('#searchval').val();
		var cid = "{$cid}";
		location.href="{:U('Home/Mobile/Index/index')}&cid="+cid+"&searchval="+searchval;
	}
	
    // 	分享弹窗
	$(function(){
    	$(".open_kf").click(function(){
    	  $(".ewm").fadeIn();
    	});
    	$(".ewm_box_close").click(function(){
    	  $(".ewm").fadeOut();
    	});
    });
</script>
</html>
